package com.fahai.web.dao;

import com.fahai.common.CommonMapper;
import com.fahai.web.entity.LawyerInfo;
import com.fahai.web.vo.LawyerInfoVo;
import com.fahai.web.vo.LawyerInfotVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by sky on 17/5/15.
 */
@Repository
public interface LawyerInfoDao extends CommonMapper<LawyerInfo> {


     public LawyerInfotVo findLawyerInfoById(Integer lawyerid);

     public List<Integer> findLawyerInfoByCondition(LawyerInfoVo lawyerInfoVo);

     /**
      * 根据前台json查询
      * @param lawyerInfoVo
      * @return
      */
     public List<LawyerInfoVo> findLawyerInfoListByCondition( LawyerInfoVo lawyerInfoVo);


     public Long findLawyerCountByCondition(LawyerInfoVo lawyerInfoVo);


     public void updateTxMoney(@Param(value = "lawyerid")Integer lawyerid, @Param(value = "money")Integer money);


     public Map<String,Object> selectOpenIdValid(Integer lawyerid);

}
